Evaluating and designing software mutual exclusion algorithms on shared-memory multiprocessors
نویسندگان
چکیده
Spring 1996 hared-memory multiprocessor systems must provide facilities called critical sections for programs to share physical and logical resources. Only one processor at a time can process a CS. This requires a method to ensure mutually exclusive access to the logically atomic operations of a shared CS. Two approaches to mutual exclusion are hardware algorithms, which use primitives, and software algorithms, which require only software read and write instructions (see the “Hardware primitives versus software algorithms” sidebar). We previously examined architecture and system effects on spin-locks, a type of hardware a1gorithm.l Extensive experiments on two different shared-memory multiprocessor systems-Bolt, Beranek, and Newman’s TC2OOCl and Kendall Square Research’s KSR-l-showed that the execution Elehavior of these algorithms, and therefore their performance, differs significantly. These machines use different types of interconnection networks and cache/memory systems. This construction produces different types of nonuniform memory access (NUMA) execution patterns for the mutual exclusion algorithms. We’ve concluded that architecture and system effects should be seriously considered when developing and implementing mutual exclusion algorithms. Our experience has motivated us to investigate comprehensive performance effects on portable software mutual exclusion protocols. However, standard analyses of mutual exclusion algorithms do not fully account for these effects. For example, these analyses express the memory-access complexity of an algorithm as a function of IV, the number of
منابع مشابه
Scalable Reader-Writer Synchronization for Shared-Memory Multiprocessors
Reader-writer synchronization relaxes the constraints of mutual exclusion to permit more than one process to inspect a shared object concurrently, as long as none of them changes its value. On uniprocessors, mutual exclusion and readerwriter locks are typically designed to de-schedule blocked processes; however, on shared-memory multiprocessors it is often advantageous to have processes busy wa...
متن کاملA Tight Bound on Time Complexity of Mutual Exclusion
In distributed shared memory multiprocessors, remote memory accesses generate processor-tomemory traffic which may result in a bottleneck. It is therefore important to design algorithms that minimize the number of remote memory accesses. We establish a lower bound of 3 on remote access time complexity for mutual exclusion algorithms in a model where processes communicate by means of a general r...
متن کاملDesigning irregular parallel algorithms with mutual exclusion and lock-free protocols
Irregular parallel algorithms pose a significant challenge for achieving high performance because of the difficulty predicting memory access patterns or execution paths. Within an irregular application, fine-grained synchronization is one technique for managing the coordination of work; but in practice the actual performance for irregular problems depends on the input, the access pattern to sha...
متن کاملFast Mutual Exclusion Algorithms Using Read-Modify-Write and Atomic Read/Write Registers
Three fast mutual exclusion algorithms using read-modify-write and atomic read/write registers are presented in a sequence, with an improvement from one to the next. The last algorithm is shown to be optimal in minimizing the number of remote memory accesses required in a resource busy period. Remote memory access is the key factor of memory access bottleneck in large shared-memory multiprocess...
متن کاملTight RMR Lower Bounds for Mutual Exclusion
We investigate the remote memory references (RMRs) complexity of deterministic processes that communicate by reading and writing shared memory in asynchronous cache-coherent and distributed shared-memory multiprocessors. We define a class of algorithms that we call order encoding. By applying information-theoretic arguments, we prove that every order encoding algorithm, shared by n processes, h...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- IEEE P&DT
دوره 4 شماره
صفحات -
تاریخ انتشار 1996